<?php
// +----------------------------------------------------------------------
// | Huncent Tinysupe [ SIMPLE IS THE BEST ! ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011 ZMRNet Studio, All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: tinysu <tinysu@qq.com>
// +----------------------------------------------------------------------

class model{
	var $db;

	function __construct(){
		$this->db = &$GLOBALS['db'];	
	}
	
	function __destruct(){
		if($this->db)
			unset($this->db);	
	}	
}
?>